package com.flyco.modules.pms.entity;

import java.io.Serializable;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import com.flyco.poi.excel.annotation.Excel;

/**
 * @Description: 商品评价
 * @Author: flyco
 * @Date:   2020-02-27
 * @Version: V1.0
 */
@Data
@TableName("pms_comment")
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="pms_comment对象", description="商品评价")
public class PmsComment {
    
	/**id*/
	@TableId(type = IdType.AUTO)
    @ApiModelProperty(value = "id")
	private Long id;
	/**商品id*/
	@Excel(name = "商品id", width = 15)
    @ApiModelProperty(value = "商品id")
	private Long productId;
	/**会员昵称*/
	@Excel(name = "会员昵称", width = 15)
    @ApiModelProperty(value = "会员昵称")
	private String memberNickName;
	/**商品名称*/
	@Excel(name = "商品名称", width = 15)
    @ApiModelProperty(value = "商品名称")
	private String productName;
	/**评价星数：0->5*/
	@Excel(name = "评价星数：0->5", width = 15)
    @ApiModelProperty(value = "评价星数：0->5")
	private Integer star;
	/**评价的ip*/
	@Excel(name = "评价的ip", width = 15)
    @ApiModelProperty(value = "评价的ip")
	private String memberIp;
	/**创建时间*/
	@Excel(name = "创建时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建时间")
	private Date createTime;
	/**是否显示*/
	@Excel(name = "是否显示", width = 15)
    @ApiModelProperty(value = "是否显示")
	private String showStatus;
	/**购买时的商品属性*/
	@Excel(name = "购买时的商品属性", width = 15)
    @ApiModelProperty(value = "购买时的商品属性")
	private String productAttribute;
	/**点赞数量*/
	@Excel(name = "点赞数量", width = 15)
    @ApiModelProperty(value = "点赞数量")
	private Integer collectCount;
	/**查看数量*/
	@Excel(name = "查看数量", width = 15)
    @ApiModelProperty(value = "查看数量")
	private Integer readCount;
	/**内容*/
	@Excel(name = "内容", width = 15)
    @ApiModelProperty(value = "内容")
	private Object content;
	/**上传图片地址，以逗号隔开*/
	@Excel(name = "上传图片地址，以逗号隔开", width = 15)
    @ApiModelProperty(value = "上传图片地址，以逗号隔开")
	private String pics;
	/**评论用户头像*/
	@Excel(name = "评论用户头像", width = 15)
    @ApiModelProperty(value = "评论用户头像")
	private String memberIcon;
	/**回复数*/
	@Excel(name = "回复数", width = 15)
    @ApiModelProperty(value = "回复数")
	private Integer replayCount;
	/**用户ID*/
	@Excel(name = "用户ID", width = 15)
    @ApiModelProperty(value = "用户ID")
	private Long memberId;
	/**订单号*/
	@Excel(name = "订单号", width = 15)
	@ApiModelProperty(value = "订单号")
	private String orderId;

	/**排除同步的评论标识*/
	@TableField(exist = false)
	private Boolean excludeFlag;

}
